home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Japan / Panasonic- / funcity / tokyo / goal.dcr / 00001_movie script.ls next >
Encoding:
Text File  |  2017-09-21  |  3.6 KB  |  115 lines

  1. global userid, userpw, userpm, userpg, repeatmode
  2.  
  3. on startMovie
  4.   set the textHeight of field "congText" to 16
  5.   set the textHeight of field "checktext" to 16
  6.   set the textHeight of field "infotext" to 16
  7.   set repeatmode to 0
  8.   cursor([the number of cast "onCursor", the number of cast "onCursor" + 1])
  9. end
  10.  
  11. on stopMovie
  12. end
  13.  
  14. on checkmedal
  15.   if repeatmode then
  16.     exit
  17.   end if
  18.   if voidp(userid) or voidp(userpm) or (userid = "guest") then
  19.     alert("You can not enter as guest.")
  20.     gotonetmovie("menu.dcr")
  21.     exit
  22.   end if
  23.   put userid into field "userID"
  24.   put userpg & RETURN & pmtopoint(char 9 of userpm) & RETURN & pmtopoint(char 10 of userpm) & RETURN & pmtopoint(char 11 of userpm) & RETURN & pmtopoint(char 12 of userpm) & RETURN & pmtopoint(char 13 of userpm) & RETURN & pmtopoint(char 14 of userpm) into field "checktext"
  25.   if (userpg >= 10000) and (char 9 of userpm >= 9) and (char 10 of userpm >= 9) and (char 11 of userpm >= 9) and (char 12 of userpm >= 9) and (char 13 of userpm >= 9) and (char 14 of userpm >= 9) then
  26.     set addpoint to 10000
  27.     set medalkind to "├úΓÇí"
  28.   else
  29.     if (userpg >= 5000) and (char 9 of userpm >= 7) and (char 10 of userpm >= 7) and (char 11 of userpm >= 7) and (char 12 of userpm >= 7) and (char 13 of userpm >= 7) and (char 14 of userpm >= 7) then
  30.       set addpoint to 5000
  31.       set medalkind to "├úΓÇÜ"
  32.     else
  33.       if (userpg >= 2000) and (char 9 of userpm >= 2) and (char 10 of userpm >= 2) and (char 11 of userpm >= 2) and (char 12 of userpm >= 2) and (char 13 of userpm >= 2) and (char 14 of userpm >= 2) then
  34.         set addpoint to 3000
  35.         set medalkind to "├¼┼á"
  36.       else
  37.         alert("You can not enter.")
  38.         gotonetmovie("menu.dcr")
  39.         exit
  40.       end if
  41.     end if
  42.   end if
  43.   put medalkind into field "medalKind"
  44.   put addpoint into field "addPoint"
  45.   repeat with p = 9 to 14
  46.     put 0 into char p of userpm
  47.   end repeat
  48.   getnettext("http://202.224.191.2/cgi-bin/EcOpe.cgi?" & "name=" & userid & "&" & "password=" & userpw & "&" & "amount=+" & addpoint & "&" & "parameter=" & userpm)
  49. end
  50.  
  51. on pmtopoint upm
  52.   if upm = 9 then
  53.     set upm to 10
  54.   end if
  55.   set upm to integer(upm * 10)
  56.   return upm
  57. end
  58.  
  59. on gameback
  60.   set the puppet of sprite clickOn() to 0
  61.   go("1")
  62. end
  63.  
  64. on gamequit
  65.   gotonetmovie("menu.dcr")
  66.   go("move")
  67. end
  68.  
  69. on rolloverbtn
  70.   set rcnum to the mouseCast
  71.   if rcnum > 0 then
  72.     set rcname to string(the name of cast rcnum)
  73.     if item 2 of rcname = "off" then
  74.       repeat with s = 44 to 45
  75.         if the castNum of sprite s = rcnum then
  76.           set the puppet of sprite s to 1
  77.           set the castNum of sprite s to rcnum + 1
  78.           next repeat
  79.         end if
  80.         set the puppet of sprite s to 0
  81.       end repeat
  82.     else
  83.       if item 2 of rcname = "on" then
  84.         repeat with s = 44 to 45
  85.           if the castNum of sprite s = rcnum then
  86.             if the mouseDown and (clickOn() = s) then
  87.               set the castNum of sprite s to rcnum + 1
  88.               do(item 1 of rcname)
  89.             end if
  90.           end if
  91.         end repeat
  92.       else
  93.         if item 2 of rcname = "click" then
  94.           repeat with s = 44 to 45
  95.             if the castNum of sprite s = rcnum then
  96.               if the mouseUp then
  97.                 set the castNum of sprite s to rcnum - 1
  98.                 next repeat
  99.               end if
  100.             end if
  101.           end repeat
  102.         else
  103.           repeat with s = 44 to 45
  104.             set the puppet of sprite s to 0
  105.           end repeat
  106.         end if
  107.       end if
  108.     end if
  109.   else
  110.     repeat with s = 44 to 45
  111.       set the puppet of sprite s to 0
  112.     end repeat
  113.   end if
  114. end
  115.